import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', {
   state:()=>{
     return{
         allright:[]
     }
   },
   actions:{
        setRight(arr){
            this.allright = arr
        }
   },
   getters:{
    
   },
   persist: {
    enabled: true,//开启缓存
    strategies:[
        {
            storage:localStorage,//默认的存储在sessionStorage中
        }
    ]
}
   
}) 
